package AppearanceModel;

public class MainFrame {
    private Memory memory;
    private CPU cpu;
    private OS os;
    private HardDisk disk;

    public MainFrame() {
        memory=new Memory();
        cpu=new CPU();
        os=new OS();
        disk=new HardDisk();
    }

    public int on() {
        memory.check();
        cpu.run();
        os.load();
        disk.read();
        return 1;
    }
}